Skip to content

feat(id-cli): id world owner local owner report command (#11777) - #11831

Merged
dezren39 merged 1 commit into
mainfrom
feat/11777-world-owner-cli
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
feat/11777-world-owner-cli

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Before: the owner report could only be built from Rust, and id-cli's command-list test was failing on main because the gallery and keyset commands were missing from the CLI doc list and README table.

After: id world owner <dir> [--since 7d] [--json] prints one local world's owner report: join counts (host issued, delegated, revoked, accounts, inherited from a fork), recent joins by participant id, and storage on disk, with join times, active members and program runs marked unavailable with the reason. --json prints the schema-version-1 object that check_schema_version accepts. The command-list test passes again.

How: the command is an adapter over world_owner_report::project and world_storage::inventory, with no aggregation of its own. It refuses a world directory owned by another user unless run as root, since the journal holds the participant list. It reads the world id from the journal header and passes it in so every later line is checked against it. It contacts no host, never wakes a world and writes nothing, so the live sections are always unavailable here. The projection now skips blank journal lines as FileJournal::open does. Tests cover offline text and JSON output, schema, a missing header, an unsupported journal version, a non-world directory and the owner rule. The id-cli lib suite passes (728).

Fixes #11777


Generated by Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

`id world owner <dir> [--since 7d] [--json]` prints one durable world's
owner report from its directory: it requires the caller to own the
world directory (or be root), measures storage, streams the journal
through the owner projection and prints text or schema-version-1 JSON.
It contacts no host, never wakes a world and writes nothing, so live
membership and program runs are labelled unavailable.

The projection now skips blank journal lines, as FileJournal::open does.

Also adds the `gallery` and `keyset` commands to the CLI module-doc list
and README table: their omission was failing
test_command_lists_cover_all_clap_subcommands on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 marked this pull request as ready for review November 18, 2026 17:09
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 17:09
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T17:10:54.839185Z ef95dd8 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit ef1567c into main Nov 18, 2026
@dezren39
dezren39 deleted the feat/11777-world-owner-cli branch November 18, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

id: add the local world owner report command

2 participants